// components/confirmModal/confirmModal.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    show: {
      type: Boolean,
      value: false,
      observer: function (newVal, oldVal, changedPath) {

      }
    },
    content: {
      type: String,
      value: '',
      observer: function (newVal, oldVal, changedPath) {

      }
    },
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    cancelHandler: function () {
      this.triggerEvent('cancel')
    },
    confirmHandler: function () {
      this.triggerEvent('confirm')
    }
  }
})
